package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.CaseSubTypeMapper;
import com.ktgj.customer.domain.CaseSubType;
import com.ktgj.customer.service.ICaseSubTypeService;

/**
 * 系统字典_工单小类Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-03
 */
@Service
public class CaseSubTypeServiceImpl implements ICaseSubTypeService 
{
    @Autowired
    private CaseSubTypeMapper caseSubTypeMapper;

    /**
     * 查询系统字典_工单小类
     * 
     * @param caseSubTypeId 系统字典_工单小类ID
     * @return 系统字典_工单小类
     */
    @Override
    public CaseSubType selectCaseSubTypeById(Long caseSubTypeId)
    {
        return caseSubTypeMapper.selectCaseSubTypeById(caseSubTypeId);
    }

    /**
     * 查询系统字典_工单小类列表
     * 
     * @param caseSubType 系统字典_工单小类
     * @return 系统字典_工单小类
     */
    @Override
    public List<CaseSubType> selectCaseSubTypeList(CaseSubType caseSubType)
    {
        return caseSubTypeMapper.selectCaseSubTypeList(caseSubType);
    }

    /**
     * 新增系统字典_工单小类
     * 
     * @param caseSubType 系统字典_工单小类
     * @return 结果
     */
    @Override
    public int insertCaseSubType(CaseSubType caseSubType)
    {
        return caseSubTypeMapper.insertCaseSubType(caseSubType);
    }

    /**
     * 修改系统字典_工单小类
     * 
     * @param caseSubType 系统字典_工单小类
     * @return 结果
     */
    @Override
    public int updateCaseSubType(CaseSubType caseSubType)
    {
        return caseSubTypeMapper.updateCaseSubType(caseSubType);
    }

    /**
     * 批量删除系统字典_工单小类
     * 
     * @param caseSubTypeIds 需要删除的系统字典_工单小类ID
     * @return 结果
     */
    @Override
    public int deleteCaseSubTypeByIds(Long[] caseSubTypeIds)
    {
        return caseSubTypeMapper.deleteCaseSubTypeByIds(caseSubTypeIds);
    }

    /**
     * 删除系统字典_工单小类信息
     * 
     * @param caseSubTypeId 系统字典_工单小类ID
     * @return 结果
     */
    @Override
    public int deleteCaseSubTypeById(Long caseSubTypeId)
    {
        return caseSubTypeMapper.deleteCaseSubTypeById(caseSubTypeId);
    }
}
